<?php /* Smarty version 2.6.26, created on 2010-06-30 17:37:15
         compiled from resource.tpl */ ?>
<div id="container">
<table width="960" cellpadding="0" cellspacing="0" border="0" id="table">
<tr><th height="40" style="text-align:center;"><?php echo $this->_tpl_vars['uname']; ?>
你好！欢迎来到IBM俱乐部资源中心！&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $this->_tpl_vars['logout']; ?>
</th></tr>
<tr><td height="40" style="vertical-align:middle; text-align:right">
<form action="upload.php" method="post" enctype="multipart/form-data">
<label for="file">文件名：</label>
<input type="file" name="file" id="file" /> 
<input type="submit" name="submit" value="上传资源" />
</form>
</td></tr>
<tr><td height="600" style="vertical-align:top;">
<table width="800" border="0" align="center" cellpadding="0" cellspacing="1" id="tb_share">
  <tr>
    <th width="400">资源名</th>
    <th width="200">上传时间</th>
    <th width="100">上传者</th>
    <th width="100">下载资源</th>
  </tr>  
  <?php unset($this->_sections['index']);
$this->_sections['index']['name'] = 'index';
$this->_sections['index']['loop'] = is_array($_loop=$this->_tpl_vars['resourderows']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['index']['show'] = true;
$this->_sections['index']['max'] = $this->_sections['index']['loop'];
$this->_sections['index']['step'] = 1;
$this->_sections['index']['start'] = $this->_sections['index']['step'] > 0 ? 0 : $this->_sections['index']['loop']-1;
if ($this->_sections['index']['show']) {
    $this->_sections['index']['total'] = $this->_sections['index']['loop'];
    if ($this->_sections['index']['total'] == 0)
        $this->_sections['index']['show'] = false;
} else
    $this->_sections['index']['total'] = 0;
if ($this->_sections['index']['show']):

            for ($this->_sections['index']['index'] = $this->_sections['index']['start'], $this->_sections['index']['iteration'] = 1;
                 $this->_sections['index']['iteration'] <= $this->_sections['index']['total'];
                 $this->_sections['index']['index'] += $this->_sections['index']['step'], $this->_sections['index']['iteration']++):
$this->_sections['index']['rownum'] = $this->_sections['index']['iteration'];
$this->_sections['index']['index_prev'] = $this->_sections['index']['index'] - $this->_sections['index']['step'];
$this->_sections['index']['index_next'] = $this->_sections['index']['index'] + $this->_sections['index']['step'];
$this->_sections['index']['first']      = ($this->_sections['index']['iteration'] == 1);
$this->_sections['index']['last']       = ($this->_sections['index']['iteration'] == $this->_sections['index']['total']);
?>
    <tr>
    <td><?php echo $this->_tpl_vars['resourderows'][$this->_sections['index']['index']]['title']; ?>
</td>
    <td><?php echo $this->_tpl_vars['resourderows'][$this->_sections['index']['index']]['to_char']; ?>
</td>
    <td><?php echo $this->_tpl_vars['resourderows'][$this->_sections['index']['index']]['author']; ?>
</td>
    <td><a href="<?php echo $this->_tpl_vars['resourderows'][$this->_sections['index']['index']]['url']; ?>
" id="a1">下载</a></td>
  </tr>
  <?php endfor; endif; ?>
</table>
</td></tr></table>
</div>